
//商城数据--商品类型 默认从1开始
export const ShopDataCfg = {
    //摩托
    1: [
        // { type: 1, id: 0, getType: 0, price: 200, width: 0.45, height: 1.3, len: 0.504, minSpeed: 12, maxSpeed: 15, totalPartCount: 12, rolePos: { x: 0, y: 0.2, z: 0 }, streakPos: [], streakWidth: 0.063 },
        {
            type: 1, id: 1, getType: 0, price: 0,
            width: 0.6, height: 1.4, len: 1.6,
            minSpeed: 15, maxSpeed: 24, totalPartCount: 24,
            rolePos: { x: 0, y: 0.515, z: 0 },
            streakPos: [{ x: 0, y: 0, z: 0.5 }], streakWidth: 0.23,
            huoYanPos: [{ x: 0, y: 0.25, z: 1.75 }],
        },
        {
            type: 1, id: 2, getType: 0, price: 500,
            width: 0.45, height: 1.4, len: 1.48,
            minSpeed: 15, maxSpeed: 24, totalPartCount: 24,
            rolePos: { x: 0, y: 0.464, z: 0 },
            streakPos: [{ x: 0, y: 0, z: 0.5 }], streakWidth: 0.25,
            huoYanPos: [{ x: 0, y: 0.1, z: 1.8 }],
        },
        {
            type: 1, id: 3, getType: 1, price: 0,
            width: 0.45, height: 1.4, len: 1.8,
            minSpeed: 15, maxSpeed: 24, totalPartCount: 24,
            rolePos: { x: 0, y: 0.472, z: 0.168 },
            streakPos: [{ x: 0, y: 0, z: 0.65 }], streakWidth: 0.25,
            huoYanPos: [{ x: 0, y: 0.36, z: 1.96 }],
        },
    ],
    //赛车
    2: [
        {
            type: 2, id: 1, getType: 0, price: 0,
            width: 2.418, height: 1.4, len: 3.724,
            minSpeed: 20, maxSpeed: 30, totalPartCount: 51,
            rolePos: { x: 0, y: 0.152, z: -0.77 },
            streakPos: [{ x: -0.976, y: 0, z: 1.427 }, { x: 0.976, y: 0, z: 1.427 }], streakWidth: 0.327,
            huoYanPos: [{ x: 0.42, y: 0.3, z: 3 }, { x: -0.42, y: 0.3, z: 3 }],
        },
        {
            type: 2, id: 2, getType: 0, price: 1500,
            width: 1.515, height: 1.2, len: 4,
            minSpeed: 18, maxSpeed: 28, totalPartCount: 51,
            rolePos: { x: -0.359, y: 0.197, z: -0.312 },
            streakPos: [{ x: 0.644, y: 0, z: 1.123 }, { x: -0.644, y: 0, z: 1.123 }], streakWidth: 0.228,
            huoYanPos: [{ x: 0.42, y: 0.3, z: 3 }, { x: -0.42, y: 0.3, z: 3 }],
        },
        {
            type: 2, id: 3, getType: 0, price: 5000,
            width: 1.635, height: 0.9, len: 3.757,
            minSpeed: 20, maxSpeed: 28, totalPartCount: 51,
            rolePos: { x: -0.301, y: 0.222, z: -0.31 },
            streakPos: [{ x: -0.703, y: 0, z: 1.077 }, { x: 0.703, y: 0, z: 1.077 }], streakWidth: 0.29,
            huoYanPos: [{ x: 0.42, y: 0.3, z: 2.8 }, { x: -0.42, y: 0.3, z: 2.8 }],
        },
    ],
    //越野车
    3: [
        {
            type: 3, id: 1, getType: 0, price: 0,
            width: 2.098, height: 1.7, len: 3.586,
            minSpeed: 25, maxSpeed: 40, totalPartCount: 97,
            rolePos: { x: -0.301, y: 0.546, z: -0.16 },
            streakPos: [{ x: 0.867, y: 0, z: 1.03 }, { x: -0.848, y: 0, z: 1.03 }], streakWidth: 0.329,
            huoYanPos: [{ x: -0.507, y: 0.34, z: 2.527 }, { x: 0.507, y: 0.34, z: 2.527 }],
        },
        {
            type: 3, id: 2, getType: 0, price: 5000,
            width: 2.6, height: 2.2, len: 3.122,
            minSpeed: 20, maxSpeed: 40, totalPartCount: 97,
            rolePos: { x: -0.495, y: 0.951, z: -0.048 },
            streakPos: [{ x: -1.114, y: 0, z: 1.028 }, { x: 1.114, y: 0, z: 1.028 }], streakWidth: 0.391,
            huoYanPos: [{ x: 0.63, y: 0.939, z: 2.432 }, { x: -0.63, y: 0.939, z: 2.432 }],
        },
        {
            type: 3, id: 3, getType: 2, price: 0,
            width: 2.799, height: 2.5, len: 5.26,
            minSpeed: 25, maxSpeed: 45, totalPartCount: 97,
            rolePos: { x: -0.335, y: 1.092, z: -0.155 },
            streakPos: [{ x: 1.121, y: 0, z: 2.297 }, { x: -1.121, y: 0, z: 2.297 }], streakWidth: 0.453,
            huoYanPos: [{ x: -0.507, y: 0.623, z: 3.788 }, { x: 0.507, y: 0.623, z: 3.788 }],
        },
    ],

}
//商品数据类型
export class ShopDataType {
    type = 0; //类型
    id = 0;   //id
    getType = 0;  //获取方式 0-金币 1-视频 2-签到 3-抽奖
    price = 0;  //金币价格
    constructor(type, id, getType, price) {
        this.type = type;
        this.id = id;
        this.getType = getType;
        this.price = price;
    }
}